package com.southwind.mapper;

import com.southwind.entity.BusCar;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2024-05-28
 */
public interface BusCarMapper extends BaseMapper<BusCar> {

    @Update({"update bus_car set isrenting = 1 where carnumber = #{carnumber} "})
    public void rent(String carnumber);

    @Update({"update bus_car set isrenting = 0 where carnumber = #{carnumber} "})
    public void check(String carnumber);
}
